package io.github.zerobyteword.oneasynctool;

import java.util.Map;

@FunctionalInterface
public interface WorkerJob<K, V> {
    V process(K params, Map<String, Object> resultMap) throws Throwable;

    default V exceptionHandler(K params, Map<String, Object> resultMap, Throwable e) throws Throwable {
        throw e;
    }

}
